package com.GDOU.service;

import com.GDOU.bean.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherService {
    //通过id查询教师
    Teacher getTeacherById(Integer teaId);

    //添加教师
    int addTeacher(Teacher teacher);

    //删除教师
    int deleteTeacher(String teaNum);

    //修改教师
    int updateTeacher(Teacher teacher);

    //查询所有教师
    List<Teacher> getAllTeacher();

    //获取教师的分页信息
    PageInfo<Teacher> getTeacherPage(Integer pageNum);

    //通过姓名查询教师信息
    Teacher getTeacherByName(String teaName);
}
